package com.example.demo.controller;

import com.example.demo.pojo.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 测试控制器
 *
 * @author JW
 * @version 1.0
 * @date 2021/5/25 11:40
 */
@RestController
public class IndexController {

    @PostMapping("/index/test")
    public Result test(@RequestBody Map<String,String> param){
        return Result.success("001","success!");
    }
}
